﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Page.Master" AutoEventWireup="true" CodeBehind="ListCompanyInsurence.aspx.cs" Inherits="HealthInsuranceMgm.Admin.ListCompanyInsurence" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/addrecord-script.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            InitializeValidation();
        });
    </script>
    <html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
     
    <script src="../Scripts/confirm.js" type="text/javascript"></script>
</head>
<body>
    
   <form id="frmListcompany" runat="server">
        
    <asp:Panel ID="PanelListCompany" runat="server">
     <fieldset>
            <legend> <h3>List Company Insurence</h3></legend>

        <img src="../images/Add.gif" /><a href="AddSurrence.aspx">Addnew Record</a><br />
&nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="CompanyId"
        onselectedindexchanging="GridView1_SelectedIndexChanging"
        ClientIDMode="Static" Width="627px" onrowcommand="GridView1_RowCommand" 
        onsorting="GridView1_Sorting" AllowSorting="True" 
        onrowdatabound="GridView1_RowDataBound" 
        onrowdeleting="GridView1_RowDeleting" 
        
        AllowPaging="True" 
                onpageindexchanging="GridView1_PageIndexChanging" PageSize="15" 
                BorderColor="#CCCCCC" BorderStyle="Solid">
        <Columns>
            <asp:BoundField DataField="CompanyId" HeaderText="CompanyID" 
                SortExpression="CompanyId" />
            <asp:BoundField DataField="CompanyName" HeaderText="Company Name" />
            <asp:BoundField DataField="Address" HeaderText="Address" />
            <asp:BoundField DataField="Phone" HeaderText="Phone" />
            <asp:BoundField DataField="CompanyUrl" HeaderText="Website" />
            <asp:CommandField ShowSelectButton="True" ButtonType="Image" 
                SelectImageUrl="~/images/Edit.gif" SelectText=""/>
           
           <asp:TemplateField> 
                    <ItemTemplate>
                      
       <asp:LinkButton ID="LinkButton1" 
         CommandArgument='<%# Eval("CompanyId") %>' 
         CommandName="Delete" runat="server">
            <img src="../images/Delete.png" style="border:0px" />
         </asp:LinkButton>
                    </ItemTemplate>
                    </asp:TemplateField> 
        </Columns>
                <PagerSettings PageButtonCount="15" />

    </asp:GridView>
 
    <asp:HiddenField Visible ="true" ID="HiddenField1" runat="server" />
     </fieldset>
    </asp:Panel>

    <asp:Panel ID="PanelUpdatecompany" runat="server">
  <fieldset>
    <legend><h3>Update Info InSurance Company</h3></legend>
     <table>
            <tr>
                <td>Company Name:</td>
                 <td>
                     <asp:TextBox ID="txtCompanyName" runat="server" CssClass="{required:true, messages:{required:'Person ID is required!'}}"></asp:TextBox></td>
            </tr>
             <tr>
                <td>Address:</td>
                 <td><asp:TextBox ID="txtCompanyAddress" runat="server" Height="95px" TextMode="MultiLine" 
                         Width="234px"></asp:TextBox></td>
            </tr>
             <tr>
                <td>PhoneNo:</td>
                 <td><asp:TextBox ID="txtCompanyPhone" runat="server"></asp:TextBox></td>
            </tr>
             <tr>
                <td>Company Url:</td>
                 <td><asp:TextBox ID="txtUrlCompany" runat="server" Width="191px"></asp:TextBox></td>
            </tr>
             <tr>
                <td>&nbsp;</td>
                 <td>
                     <asp:Button ID="btnupdate" runat="server" Text="Update" onclick="btnupdate_Click" />
                     <asp:Button ID="btnReset" runat="server"  Text="Reset" />
                     <a href="ListCompanyInsurence.aspx">List Company</a>
                     <asp:HiddenField ID="HiddenField2" runat="server" Visible="False" />
                 </td>
            </tr>
            </table>
  </fieldset>
    </asp:Panel>
   

   </form>
</body>
</html>
</asp:Content>
